import requests
import json


def main():
        
    url = "https://qianfan.baidubce.com/v2/app/conversation/runs"
    
    payload = json.dumps({
        "app_id": "ae45d5b1-6c61-4c74-843e-140b3508bab6",
        "query": "你好",
        "stream": False,
        "conversation_id": "93384a2d-d701-4889-93d6-5f06767000db"
    })
    headers = {
        'Content-Type': 'application/json',
        'X-Appbuilder-Authorization': 'Bearer bce-v3/ALTAK-wZggh5hPuC7b9OVBjqJgS/fdf601529793239ade14b1f976bc11fcf2e99194'
    }
    
    response = requests.request("POST", url, headers=headers, data=payload)
    
    print(response.text)
    

if __name__ == '__main__':
    main()
